<?php
/*
 +----------------------------------------------------------------------
 + Title        : SystemLog 控制器
 + Author       : Randy_chen
 + Version      : V1.0.0.1
 + Initial-Time : 2020/4/23 9:00
 + Last-time    : 2020/4/23 9:00+ 86187
 + Desc         : SystemLog
 +----------------------------------------------------------------------
*/
namespace app\admin\model;

use app\common\lib\exception\ApiException;
use app\common\lib\Where;
use app\common\model\BaseModel;
use think\exception\DbException;
use think\Model;
use think\Request;

class SystemLog extends BaseModel {
    protected $name = 'sys_log';
    public function getList(Request $request){
        try {
            return $this->gt('id')->order('id desc')->_paginate();
        } catch (DbException $e) {
            throw new ApiException(1 , $e->getMessage());
        }
    }
}